package com.platform.wechat.common;

import java.util.UUID;

/**
 * @author CX
 * @create 2021-07-22 16:52
 */
public class Commons {

    /**
     * 获得随机字符串
     * @return
     */
    public static String getNoncestr(){
        return UUID.randomUUID().toString().replace("-","").substring(0,16);
    }

    /**
     * 获得当前时间戳
     * @return
     */
    public static Long getTimestamp(){
        return System.currentTimeMillis()/1000;
    }
}
